package com.struts.myaction;

import com.struts.context.ActionContext;

public class HellAction {
	private String name;
	private Integer year;
	
	

	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	public Integer getYear() {
		return year;
	}



	public void setYear(Integer year) {
		this.year = year;
	}



	public String execute() {
		ActionContext.getContext().getRequest().setAttribute("year", year);
		// 将name放到request域中
		ActionContext.getContext().getRequest().setAttribute("name", name);
		return "success";
	}
}
